﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace SaleOffVn.Web.MasterPages
{
    public partial class Root : System.Web.UI.MasterPage
    {
        private string activeBanner = "";
        public string ActiveBanner
        {
            get { return activeBanner; }
            set { activeBanner = value; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string strJSFile;            
            /* thom nguyen  - 09-03-20108*/
            strJSFile = this.ResolveClientUrl("~/Scripts/root.js");
            Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "addscriptroot", strJSFile);

            if (activeBanner == "home")
            {
                homeBar.Attributes.Remove("class");
                homeBar.Attributes.Add("class", "home-topbar-on");
            }
        }        
    }
}